package com.dao;

import java.util.List;

import com.model.SaleOrderItem;
import com.model.SaleReturn;
import com.model.SaleReturnItem;

public interface SaleReturnDAO {
	// 根据saleOrderNo查找saleOrderId
	public int findBySaleOrderNo(String saleOrderNo);

	// 根据saleOrderId查找saleOrderItem
	public List<SaleOrderItem> findBySaleOrder_Id(int saleOrder_id);

	// saleReturn
	public boolean addSaleReturn(SaleReturn saleReturn);

	// select saleReturn
	public List<?> selectSaleReturn(String key, String type, int page,
			int rows, String sort, String order);

	// serial number
	public int getLastNum();

	public int getTotal();

	public int getLikeTotal(String key, String type);

	// SaleReturnItem
	public boolean addSaleReturnItem(SaleReturnItem saleReturnItem);
}
